<!DOCTYPE HTML>
<html lang="zh-hans" >
    <!-- Start book Linux -->
<!-- Start book Linux -->
    <head>
        <!-- head:start -->
<!-- head:start -->
        <meta charset="UTF-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <title>目录操作的常见指令 | Linux</title>
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <meta name="description" content="">
        <meta name="generator" content="GitBook 2.6.7">
        <meta name="author" content="chris Jiang">
        
        <meta name="HandheldFriendly" content="true"/>
        <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
        <meta name="apple-mobile-web-app-capable" content="yes">
        <meta name="apple-mobile-web-app-status-bar-style" content="black">
        <link rel="apple-touch-icon-precomposed" sizes="152x152" href="gitbook/images/apple-touch-icon-precomposed-152.png">
        <link rel="shortcut icon" href="gitbook/images/favicon.ico" type="image/x-icon">
        
    <link rel="stylesheet" href="gitbook/style.css">
    
        
        <link rel="stylesheet" href="gitbook/plugins/gitbook-plugin-prism/prism.css">
        
    
        
        <link rel="stylesheet" href="gitbook/plugins/gitbook-plugin-splitter/splitter.css">
        
    
        
        <link rel="stylesheet" href="gitbook/plugins/gitbook-plugin-toggle-chapters/toggle.css">
        
    
        
        <link rel="stylesheet" href="gitbook/plugins/gitbook-plugin-highlight/website.css">
        
    
        
        <link rel="stylesheet" href="gitbook/plugins/gitbook-plugin-fontsettings/website.css">
        
    
    

        
    
    
    <link rel="next" href="./chapter06.html" />
    
    
    <link rel="prev" href="./chapter04.html" />
    

        <!-- head:end -->
<!-- head:end -->
    </head>
    <body>
        <!-- body:start -->
<!-- body:start -->
        
    <div class="book"
        data-level="5"
        data-chapter-title="目录操作的常见指令"
        data-filepath="chapter05.md"
        data-basepath="."
        data-revision="Mon Sep 30 2019 00:13:13 GMT+0800 (CST)"
        data-innerlanguage="">
    

<div class="book-summary">
    <nav role="navigation">
        <ul class="summary">
            
            
            
            

            

            
    
        <li class="chapter " data-level="0" data-path="index.html">
            
                
                    <a href="./index.html">
                
                        <i class="fa fa-check"></i>
                        
                        学习目标
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1" data-path="chapter01.html">
            
                
                    <a href="./chapter01.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.</b>
                        
                        Linux入门
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.1" data-path="01/section01.html">
            
                
                    <a href="./01/section01.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.1.</b>
                        
                        操作系统介绍
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.2" data-path="01/section02.html">
            
                
                    <a href="./01/section02.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.2.</b>
                        
                        Linux系统介绍
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.3" data-path="01/section03.html">
            
                
                    <a href="./01/section03.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.3.</b>
                        
                        使用虚拟机安装Ubuntu
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.4" data-path="01/section04.html">
            
                
                    <a href="./01/section04.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.4.</b>
                        
                        使用U盘安装双系统
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.5" data-path="01/section05.html">
            
                
                    <a href="./01/section05.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.5.</b>
                        
                        配置Linux系统
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.6" data-path="01/section06.html">
            
                
                    <a href="./01/section06.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.6.</b>
                        
                        Linux启动流程
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.7" data-path="01/section07.html">
            
                
                    <a href="./01/section07.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.7.</b>
                        
                        远程连接Linux
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2" data-path="chapter02.html">
            
                
                    <a href="./chapter02.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.</b>
                        
                        软件安装相关指令
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="3" data-path="chapter03.html">
            
                
                    <a href="./chapter03.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.</b>
                        
                        文件系统
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="4" data-path="chapter04.html">
            
                
                    <a href="./chapter04.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>4.</b>
                        
                        vim编辑器
                    </a>
            
            
        </li>
    
        <li class="chapter active" data-level="5" data-path="chapter05.html">
            
                
                    <a href="./chapter05.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>5.</b>
                        
                        目录操作的常见指令
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="6" data-path="chapter06.html">
            
                
                    <a href="./chapter06.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>6.</b>
                        
                        python、pip和ipython的安装
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="7" data-path="chapter07.html">
            
                
                    <a href="./chapter07.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>7.</b>
                        
                        虚拟环境管理
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="8" data-path="chapter08.html">
            
                
                    <a href="./chapter08.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>8.</b>
                        
                        用户管理相关指令
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="9" data-path="chapter09.html">
            
                
                    <a href="./chapter09.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>9.</b>
                        
                        权限管理
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="10" data-path="chapter10.html">
            
                
                    <a href="./chapter10.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>10.</b>
                        
                        压缩解压命令
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="11" data-path="chapter11.html">
            
                
                    <a href="./chapter11.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>11.</b>
                        
                        服务监听
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="12" data-path="chapter12.html">
            
                
                    <a href="./chapter12.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>12.</b>
                        
                        管道和重定向
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="13" data-path="chapter13.html">
            
                
                    <a href="./chapter13.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>13.</b>
                        
                        Nginx的安装和配置
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="14" data-path="chapter14.html">
            
                
                    <a href="./chapter14.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>14.</b>
                        
                        Git的使用
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="14.1" data-path="14/section01.html">
            
                
                    <a href="./14/section01.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>14.1.</b>
                        
                        git本地和远端管理
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="14.2" data-path="14/section02.html">
            
                
                    <a href="./14/section02.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>14.2.</b>
                        
                        冲突的介绍
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="14.3" data-path="14/section03.html">
            
                
                    <a href="./14/section03.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>14.3.</b>
                        
                        分支操作
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="14.4" data-path="14/section04.html">
            
                
                    <a href="./14/section04.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>14.4.</b>
                        
                        远端服务器的SSH连接
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="15" data-path="chapter15.html">
            
                
                    <a href="./chapter15.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>15.</b>
                        
                        shell编程
                    </a>
            
            
        </li>
    


            
            <li class="divider"></li>
            <li>
                <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
                    本书使用 GitBook 发布
                </a>
            </li>
            
        </ul>
    </nav>
</div>

    <div class="book-body">
        <div class="body-inner">
            <div class="book-header" role="navigation">
    <!-- Actions Left -->
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href="./" >Linux</a>
    </h1>
</div>

            <div class="page-wrapper" tabindex="-1" role="main">
                <div class="page-inner">
                
                
                    <section class="normal" id="section-">
                    
                        <h1 id="&#x76EE;&#x5F55;&#x64CD;&#x4F5C;&#x7684;&#x5E38;&#x89C1;&#x6307;&#x4EE4;">&#x76EE;&#x5F55;&#x64CD;&#x4F5C;&#x7684;&#x5E38;&#x89C1;&#x6307;&#x4EE4;</h1>
<ul>
<li><p>pwd&#xFF1A;&#x67E5;&#x770B;&#x5F53;&#x524D;&#x5DE5;&#x4F5C;&#x76EE;&#x5F55;</p>
</li>
<li><p>cd:&#x5207;&#x6362;&#x5DE5;&#x4F5C;&#x76EE;&#x5F55;</p>
</li>
</ul>
<table>
<thead>
<tr>
<th>&#x7B26;&#x53F7;</th>
<th>&#x8BF4;&#x660E;</th>
</tr>
</thead>
<tbody>
<tr>
<td>.</td>
<td>&#x5F53;&#x524D;&#x76EE;&#x5F55;</td>
</tr>
<tr>
<td>..</td>
<td>&#x4E0A;&#x4E00;&#x7EA7;&#x76EE;&#x5F55;</td>
</tr>
<tr>
<td>~</td>
<td>&#x5F53;&#x524D;&#x7528;&#x6237;&#x7684;&#x5BB6;&#x76EE;&#x5F55;</td>
</tr>
<tr>
<td>-</td>
<td>&#x8868;&#x793A;&#x4E0A;&#x6B21;&#x5207;&#x6362;&#x4E4B;&#x524D;&#x7684;&#x76EE;&#x5F55;</td>
</tr>
<tr>
<td>/</td>
<td>&#x8868;&#x793A;&#x6839;&#x76EE;&#x5F55;</td>
</tr>
</tbody>
</table>
<blockquote>
<p>1.&#x4F7F;&#x7528;cd&#x65F6;&#xFF0C;&#x4E0D;&#x6307;&#x5B9A;&#x76EE;&#x6807;&#x5730;&#x5740;&#xFF0C;&#x4F1A;&#x5207;&#x6362;&#x5230;&#x5BB6;&#x76EE;&#x5F55;</p>
<p>2.&#x51E1;&#x662F;&#x4EE5;/&#x5F00;&#x5934;&#x7684;&#x76EE;&#x5F55;&#x90FD;&#x662F;&#x7EDD;&#x5BF9;&#x76EE;&#x5F55; </p>
<p>3.&#x51E1;&#x662F;&#x4EE5;.&#x6216;..&#x5F00;&#x5934;&#x7684;&#x76EE;&#x5F55;&#x90FD;&#x662F;&#x76F8;&#x5F53;&#x76EE;&#x5F55;</p>
</blockquote>
<ul>
<li>l:&#x67E5;&#x770B;&#x6307;&#x5B9A;&#x76EE;&#x5F55;&#x7684;&#x5185;&#x5BB9;&#xFF0C;&#x4E0D;&#x6307;&#x5B9A;&#x76EE;&#x5F55;&#x65F6;&#x67E5;&#x770B;&#x5F53;&#x524D;&#x5DE5;&#x4F5C;&#x76EE;&#x5F55;</li>
</ul>
<table>
<thead>
<tr>
<th>&#x9009;&#x9879;</th>
<th>&#x8BF4;&#x660E;</th>
</tr>
</thead>
<tbody>
<tr>
<td>-a</td>
<td>&#x663E;&#x793A;&#x6240;&#x6709;&#x6587;&#x4EF6;&#xFF0C;&#x5305;&#x62EC;&#x9690;&#x85CF;&#x6587;&#x4EF6;</td>
</tr>
<tr>
<td>-l</td>
<td>&#x5217;&#x8868;&#x663E;&#x793A;&#xFF0C;&#x8BE6;&#x7EC6;&#x4FE1;&#x606F;</td>
</tr>
<tr>
<td>-h</td>
<td>&#x4EBA;&#x6027;&#x5316;&#x7684;&#x663E;&#x793A;&#x5927;&#x5C0F;&#xFF0C;&#x5982;&#xFF1A;K/M/G</td>
</tr>
</tbody>
</table>
<p>  -l&#x9009;&#x9879;&#x663E;&#x793A;&#x7684;&#x7ED3;&#x679C;&#xFF1A;&#x7C7B;&#x578B;&#x53CA;&#x6743;&#x9650; | &#x8FDE;&#x63A5;&#x6570; | &#x7528;&#x6237; | &#x7528;&#x6237;&#x7EC4; | &#x5927;&#x5C0F; | &#x6708; | &#x65E5;| &#x5E74;/&#x65F6;&#x95F4; | &#x540D;&#x79F0;  </p>
<p>  &#x6587;&#x4EF6;&#x7C7B;&#x578B;&#xFF1A;(-l&#x663E;&#x793A;&#x7ED3;&#x679C;&#x4E2D;&#x7684;&#x7B2C;&#x4E00;&#x90E8;&#x5206;&#x7684;&#x7B2C;&#x4E00;&#x5217;)</p>
<p> &#x8FDE;&#x63A5;&#x6570;&#xFF1A;&#x5982;&#x679C;&#x662F;&#x6587;&#x4EF6;&#xFF0C;&#x8868;&#x793A;&#x8FD9;&#x4E2A;&#x6587;&#x4EF6;&#x6709;&#x591A;&#x5C11;&#x4E2A;&#x540D;&#x5B57;&#xFF08;&#x786C;&#x94FE;&#x63A5;&#xFF09;&#xFF1B;&#x5982;&#x679C;&#x662F;&#x76EE;&#x5F55;&#xFF0C;&#x8868;&#x793A;&#x8FD9;&#x4E2A;&#x76EE;&#x5F55;&#x91CC;&#x6709;&#x591A;&#x5C11;&#x4E2A;&#x5B50;&#x76EE;&#x5F55;&#x3002;</p>
<table>
<thead>
<tr>
<th>&#x7B26;&#x53F7;</th>
<th>&#x7C7B;&#x578B;</th>
</tr>
</thead>
<tbody>
<tr>
<td>-</td>
<td>&#x666E;&#x901A;&#x6587;&#x4EF6;&#x3002;&#x5305;&#x62EC;&#x7EAF;&#x6587;&#x672C;&#x6587;&#x4EF6;(ASCII)&#xFF1B;&#x4E8C;&#x8FDB;&#x5236;&#x6587;&#x4EF6;(binary)&#xFF1B;&#x6570;&#x636E;&#x683C;&#x5F0F;&#x7684;&#x6587;&#x4EF6;(data);&#x5404;&#x79CD;&#x538B;&#x7F29;&#x6587;&#x4EF6;&#x7B49;&#x3002;</td>
</tr>
<tr>
<td>d</td>
<td>&#x76EE;&#x5F55;&#x6587;&#x4EF6;&#x3002;</td>
</tr>
<tr>
<td>l</td>
<td>&#x94FE;&#x63A5;&#x6587;&#x4EF6;&#x3002;&#x7C7B;&#x4F3C;&#x4E8E;Windows&#x91CC;&#x7684;&#x5FEB;&#x6377;&#x65B9;&#x5F0F;&#x3002;</td>
</tr>
<tr>
<td>c</td>
<td>&#x5B57;&#x7B26;&#x8BBE;&#x5907;&#x6587;&#x4EF6;&#x3002;&#x5373;&#x4E32;&#x884C;&#x7AEF;&#x53E3;&#x7684;&#x63A5;&#x53E3;&#x8BBE;&#x5907;&#xFF0C;&#x4F8B;&#x5982;&#x952E;&#x76D8;&#x3001;&#x9F20;&#x6807;&#x7B49;&#x7B49;&#x3002;</td>
</tr>
<tr>
<td>b</td>
<td>&#x5757;&#x8BBE;&#x5907;&#x6587;&#x4EF6;&#x3002;&#x5C31;&#x662F;&#x5B58;&#x50A8;&#x6570;&#x636E;&#x4EE5;&#x4F9B;&#x7CFB;&#x7EDF;&#x5B58;&#x53D6;&#x7684;&#x63A5;&#x53E3;&#x8BBE;&#x5907;&#xFF0C;&#x7B80;&#x5355;&#x800C;&#x8A00;&#x5C31;&#x662F;&#x786C;&#x76D8;</td>
</tr>
<tr>
<td>s</td>
<td>&#x5957;&#x63A5;&#x5B57;&#x6587;&#x4EF6;&#x3002;&#x8FD9;&#x7C7B;&#x6587;&#x4EF6;&#x901A;&#x5E38;&#x7528;&#x5728;&#x7F51;&#x7EDC;&#x6570;&#x636E;&#x8FDE;&#x63A5;&#xFF0C;&#x6700;&#x5E38;&#x5728; /var/run&#x76EE;&#x5F55;&#x4E2D;&#x770B;&#x5230;&#x8FD9;&#x79CD;&#x6587;&#x4EF6;&#x7C7B;&#x578B;&#x3002;</td>
</tr>
<tr>
<td>p</td>
<td>&#x7BA1;&#x9053;&#x6587;&#x4EF6;&#x3002;&#x5B83;&#x4E3B;&#x8981;&#x7684;&#x76EE;&#x7684;&#x662F;&#xFF0C;&#x89E3;&#x51B3;&#x591A;&#x4E2A;&#x7A0B;&#x5E8F;&#x540C;&#x65F6;&#x5B58;&#x53D6;&#x4E00;&#x4E2A;&#x6587;&#x4EF6;&#x6240;&#x9020;&#x6210;&#x7684;&#x9519;&#x8BEF;&#x3002;</td>
</tr>
</tbody>
</table>
<ul>
<li><p>alias&#xFF1A;&#x7ED9;&#x547D;&#x4EE4;&#x8D77;&#x522B;&#x540D;&#x3002;</p>
<pre><code class="lang-shell">alias md=mkdir
</code></pre>
<p>&#x76F8;&#x5F53;&#x4E8E;&#x7ED9;mkdir&#x547D;&#x4EE4;&#x8D77;&#x4E86;&#x4E00;&#x4E2A;&#x522B;&#x540D;&#xFF0C;&#x4EE5;&#x540E;&#x4F7F;&#x7528;md&#x5373;&#x53EF;&#x521B;&#x5EFA;&#x4E00;&#x4E2A;&#x6587;&#x4EF6;&#x5939;&#x3002;</p>
<pre><code class="lang-shell">alias   # &#x4E0D;&#x6DFB;&#x52A0;&#x4EFB;&#x4F55;&#x53C2;&#x6570;&#xFF0C;&#x8868;&#x793A;&#x5217;&#x51FA;&#x6240;&#x6709;&#x7684;&#x522B;&#x540D;
</code></pre>
<p><img src="imgs/alias&#x6307;&#x4EE4;.png" alt="alias&#x6307;&#x4EE4;"></p>
<pre><code class="lang-shell">unalias md   # &#x5220;&#x9664;&#x522B;&#x540D;
</code></pre>
</li>
</ul>
<h2 id="&#x6587;&#x4EF6;&#x548C;&#x76EE;&#x5F55;&#x7684;&#x521B;&#x5EFA;&#x5220;&#x9664;">&#x6587;&#x4EF6;&#x548C;&#x76EE;&#x5F55;&#x7684;&#x521B;&#x5EFA;&#x5220;&#x9664;</h2>
<table>
<thead>
<tr>
<th>&#x547D;&#x4EE4;</th>
<th>&#x8BF4;&#x660E;</th>
</tr>
</thead>
<tbody>
<tr>
<td>touch</td>
<td>&#x65B0;&#x5EFA;&#x6587;&#x4EF6;&#xFF0C;&#x53EF;&#x4EE5;&#x662F;&#x591A;&#x4E2A;</td>
</tr>
<tr>
<td>rm</td>
<td>&#x5220;&#x9664;&#x6587;&#x4EF6;&#x6216;&#x76EE;&#x5F55;(&#x5220;&#x9664;&#x76EE;&#x5F55;&#x65F6;&#x8981;&#x4F20;&#x9012;&apos;-r&apos;&#x9009;&#x9879;)</td>
</tr>
<tr>
<td>cp</td>
<td>&#x62F7;&#x8D1D;&#x6587;&#x4EF6;&#x6216;&#x76EE;&#x5F55;(&#x62F7;&#x8D1D;&#x76EE;&#x5F55;&#x662F;&#x8981;&#x4F20;&#x9012;&apos;-r&apos;&#x9009;&#x9879;)</td>
</tr>
<tr>
<td>mv</td>
<td>&#x79FB;&#x52A8;&#x6587;&#x4EF6;&#x6216;&#x76EE;&#x5F55;</td>
</tr>
<tr>
<td>mkdir</td>
<td>&#x521B;&#x5EFA;&#x76EE;&#x5F55;&#xFF0C;&#x53EF;&#x4EE5;&#x662F;&#x591A;&#x4E2A;</td>
</tr>
<tr>
<td>rmdir</td>
<td>&#x5220;&#x9664;&#x7A7A;&#x76EE;&#x5F55;</td>
</tr>
</tbody>
</table>
<ul>
<li><p>&#x9009;&#x9879;&#x8BF4;&#x660E;</p>
<ul>
<li><p>-r&#xFF1A;&#x5220;&#x9664;&#x6216;&#x62F7;&#x8D1D;&#x76EE;&#x5F55;&#x65F6;&#x9700;&#x8981;&#x6DFB;&#x52A0;&#xFF0C;&#x8868;&#x793A;&#x9012;&#x5F52;&#x64CD;&#x4F5C;&#x3002;</p>
</li>
<li><p>-f&#xFF1A;&#x8868;&#x793A;&#x5F3A;&#x5236;&#x64CD;&#x4F5C;&#xFF0C;&#x6CA1;&#x6709;&#x63D0;&#x793A;&#x4FE1;&#x606F;&#x3002;</p>
</li>
<li><p><em>&#xFF1A;&#x8868;&#x793A;&#x6A21;&#x7CCA;&#x5339;&#x914D;&#xFF0C;&#x5982;&#xFF1A;`rm </em>.py`&#xFF0C;&#x8868;&#x793A;&#x5220;&#x9664;&#x6240;&#x6709;&#x7684;py&#x6587;&#x4EF6;&#x3002;</p>
</li>
<li><p>-p&#xFF1A;&#x521B;&#x5EFA;&#x76EE;&#x5F55;&#x65F6;&#x82E5;&#x9700;&#x8981;&#x521B;&#x5EFA;&#x4E2D;&#x95F4;&#x76EE;&#x5F55;&#xFF0C;&#x53EF;&#x4EE5;&#x6DFB;&#x52A0;&#x6B64;&#x9009;&#x9879;&#x3002;</p>
<pre><code>mkdir -p  a/b/c
</code></pre></li>
</ul>
</li>
</ul>
<h2 id="&#x67E5;&#x770B;&#x6587;&#x4EF6;">&#x67E5;&#x770B;&#x6587;&#x4EF6;</h2>
<ul>
<li>&#x76F8;&#x5173;&#x547D;&#x4EE4;</li>
</ul>
<table>
<thead>
<tr>
<th>&#x547D;&#x4EE4;</th>
<th>&#x8BF4;&#x660E;</th>
</tr>
</thead>
<tbody>
<tr>
<td>cat</td>
<td>&#x4ECE;&#x4E0A;&#x5230;&#x4E0B;&#xFF0C;&#x663E;&#x793A;&#x6587;&#x4EF6;&#x5168;&#x90E8;&#x5185;&#x5BB9;</td>
</tr>
<tr>
<td>tac</td>
<td>&#x4ECE;&#x4E0B;&#x5230;&#x4E0A;&#xFF0C;&#x663E;&#x793A;&#x6587;&#x4EF6;&#x5168;&#x90E8;&#x5185;&#x5BB9;</td>
</tr>
<tr>
<td>head</td>
<td>&#x67E5;&#x770B;&#x5F00;&#x5934;&#x6307;&#x5B9A;&#x884C;&#x6570;&#x7684;&#x5185;&#x5BB9;&#xFF0C;&#x4E0D;&#x6307;&#x5B9A;&#x65F6;&#x9ED8;&#x8BA4;10&#x884C;&#xFF0C;&#x5982;&#xFF1A;head -20 filename</td>
</tr>
<tr>
<td>tail</td>
<td>&#x67E5;&#x770B;&#x6587;&#x4EF6;&#x672B;&#x5C3E;&#x6307;&#x5B9A;&#x884C;&#x6570;&#x7684;&#x5185;&#x5BB9;&#xFF0C;&#x4E0D;&#x6307;&#x5B9A;&#x65F6;&#x9ED8;&#x8BA4;10&#x884C;&#xFF0C;&#x5982;&#xFF1A;tail -5 filename</td>
</tr>
<tr>
<td>nl</td>
<td>&#x529F;&#x80FD;&#x4E0E;cat&#x76F8;&#x540C;&#xFF0C;&#x4F46;&#x662F;&#x591A;&#x663E;&#x793A;&#x4E86;&#x884C;&#x53F7;</td>
</tr>
<tr>
<td>wc</td>
<td>&#x7EDF;&#x8BA1;&#x663E;&#x793A;&#xFF0C;&#x5185;&#x5BB9;&#xFF1A;&#x884C;&#x6570; &#x5355;&#x8BCD;&#x6570; &#x5B57;&#x7B26;&#x6570; &#x6587;&#x4EF6;&#x540D;</td>
</tr>
<tr>
<td>more</td>
<td>&#x4E00;&#x70B9;&#x4E00;&#x70B9;&#x67E5;&#x770B;&#x5185;&#x5BB9;</td>
</tr>
<tr>
<td>less</td>
<td>&#x4E00;&#x70B9;&#x4E00;&#x70B9;&#x67E5;&#x770B;&#x5185;&#x5BB9;</td>
</tr>
</tbody>
</table>
<ul>
<li><p>more/less&#x4F7F;&#x7528;&#x8BF4;&#x660E;</p>
<ul>
<li>&#x663E;&#x793A;&#x4E00;&#x5C4F;&#x5C31;&#x505C;&#x6B62;</li>
<li>q&#x9000;&#x51FA;&#x67E5;&#x770B;</li>
<li>enter&#x4E0B;&#x7FFB;&#x4E00;&#x884C;</li>
<li>&#x7A7A;&#x683C;&#x4E0B;&#x7FFB;&#x4E00;&#x5C4F;</li>
<li>more&#x67E5;&#x770B;&#x5B8C;&#x6BD5;&#x4F1A;&#x81EA;&#x52A8;&#x9000;&#x51FA;&#xFF0C;less&#x4E0D;&#x4F1A;</li>
<li>less&#x53EF;&#x4EE5;&#x4F7F;&#x7528;&#x4E0A;&#x4E0B;&#x6309;&#x94AE;&#x4E0A;&#x4E0B;&#x7FFB;&#x770B;&#xFF0C;more&#x4E0D;&#x53EF;&#x4EE5;</li>
<li>&#x7ECF;&#x5E38;&#x7ED3;&#x5408;&#x7BA1;&#x9053;&#x4F7F;&#x7528;&#xFF1A;ls /etc | more</li>
</ul>
</li>
</ul>

                    
                    </section>
                
                
                </div>
            </div>
        </div>

        
        <a href="./chapter04.html" class="navigation navigation-prev " aria-label="Previous page: vim编辑器"><i class="fa fa-angle-left"></i></a>
        
        
        <a href="./chapter06.html" class="navigation navigation-next " aria-label="Next page: python、pip和ipython的安装"><i class="fa fa-angle-right"></i></a>
        
    </div>
</div>

        
<script src="gitbook/app.js"></script>

    
    <script src="gitbook/plugins/gitbook-plugin-splitter/splitter.js"></script>
    

    
    <script src="gitbook/plugins/gitbook-plugin-copy-code-button/toggle.js"></script>
    

    
    <script src="gitbook/plugins/gitbook-plugin-toggle-chapters/toggle.js"></script>
    

    
    <script src="gitbook/plugins/gitbook-plugin-fontsettings/buttons.js"></script>
    

<script>
require(["gitbook"], function(gitbook) {
    var config = {"prism":{},"splitter":{},"copy-code-button":{},"toggle-chapters":{},"highlight":{},"fontsettings":{"theme":"white","family":"sans","size":2}};
    gitbook.start(config);
});
</script>

        <!-- body:end -->
<!-- body:end -->
    </body>
    <!-- End of book Linux -->
<!-- End of book Linux -->
</html>
